perm filename LECT17.TEX[ARK,TEX] blob sn#766843 filedate 1984-08-23 generic text, type C, neo UTF8
COMMENT āŠ—   VALID 00003 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	% copyright 1984 by Arthur Keller ... All rights reserved
C00003 00003	\section*{Assignment}
C00007 ENDMK
CāŠ—;
% copyright 1984 by Arthur Keller ... All rights reserved
\chapter{Breaking paragraphs into lines}

%Fri, August 24

%9-10am
%Breaking paragraphs into lines
%>Modes review
%>Hyphenation
%>``Overfull'' boxes
%>Penalties

%10-11am
%<lab assignment 12>

This lecture reviews old material and covers new material in
Chapter~14.

\section*{Assignment}

Reading for this lecture:
The {\sl \TeX book}, Chapter~14.

Assignment for this lecture:
Typeset the following.

\medskip
{\obeycr\noindent %
In Xanadu did Kubla Khan
A stately pleasure dome decree,
Where Alph the sacred river ran,
Through caverns measureless to man,
Down to a sunless sea.
}
\rightline(Samuel Taylor Coleridge)

{\vbox{\leftskip=20pt plus 1fil\rightskip=30pt plus 1fil\noindent %
When the kitchen boiler burst,
Father simply sat and cursed,
Mother, with a kinder feeling,
Wiped the housemaid off the ceiling.\par}
\rightline{(Anon.)}}

\newcommand{\blackslug}{\hbox{\hskip 1pt \vrule width 4pt height 6pt depth 1.5pt
	\hskip 1pt}}
\newcommand{\qed}{{\parfillskip=0pt\hfil\blackslug\par\medskip}}

\hangindent=20pt\noindent {\sl Theorem.}  We can typeset theorems.\hfill\break
When you have a theorem, you place a black slug (\blackslug) flush right on the
last line of the last paragraph containing the theorem.
This is the modern equivalent of ``Q.E.D.''
To be self-referential, we will prove that we can put out the black slug.\qed

\eject

{\leftskip=0pt plus 50pt\rightskip=0pt plus 25pt\noindent
Watch how this paragraph is typeset.
Notice how the lines are placed.
Notice how it is ragged on both sides,
yet it is curiously centered.
How does one accomplish this strange feat,
especially so early in the morning?
And does the same method work late at night?
There is only one way to find out: try it now, and try
it again when you return home!
\par}

\medskip

\hangindent=10pt\noindent\hbox to 10pt{1.\hfil}This is item 1.
See how it continues onto the second line if you type enough?
The text is indented 10 points from the left margin and the first
words line up.

\hangindent=10pt\noindent\hbox to 10pt{2.\hfil}This is item 2.

\hangindent=20pt\noindent\hbox to 20pt{\hskip10pt{\sl a}.\hfil}This is item 2a.

\hangindent=20pt\noindent\hbox to 20pt{\hskip10pt{\sl b}.\hfil}This is item 2b.
To see what happens, we have written a lot of text.
Is that enough text yet to go onto two lines?
It should be.

\hangindent=10pt\noindent\hbox to 10pt{3.\hfil}This is item 3.